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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10a9278]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x414d8f
cmp word [ebx], dx
jne 0x414d8f
or byte [eax + edi + 0x28], 4
jmp 0x414d94
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x414ef7
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x414ed7
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x414dd5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414e0b
cmp eax, edx
jae 0x414e19
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x414db0
jmp 0x414ef7
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414ed2
cmp dword [ebp - 0x18], 0
je 0x414ed2
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10a9278]
test byte [eax + edi + 0x28], 0x48
je 0x414ea8
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x414e6c
mov word [esi], cx
jmp 0x414ea3
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10a9278]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10a9278]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10a9278]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x414ef7
pop eax
cmp word [ebp - 4], ax
jne 0x414eb8
cmp esi, ebx
jne 0x414eb8
mov word [esi], ax
jmp 0x414ef4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415782
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x414ef7
push 0xd
pop eax
jmp 0x414eb3
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10a9278]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x414ef1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x414ef7
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416fa7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x10a7840]
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 0x416ff2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00417142
test al, al
jne 0x416fec
sub edx, 2
cmp edx, edi
jne 0x416fd2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x417014
lea eax, [edi + 2]
cmp edx, eax
je 0x417014
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00416ef3
add esp, 0x10
jmp 0x41710e
push esi
lea ecx, [ebp - 0x255]
call fcn.00417142
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 0x417057
push dword [ebp - 0x25c]
jmp 0x417004
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 0x417094
cmp word [ebp - 0x226], 0
je 0x4170b5
cmp word [ebp - 0x226], ax
jne 0x417094
cmp word [ebp - 0x224], 0
je 0x4170b5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00416ef3
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x417101
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41706e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4170e9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41710e
push 0x416d23
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041add0
add esp, 0x10
jmp 0x4170de
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.00407462
leave
ret

Function at 0x419d12
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004117a0
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x419d81
cmp esi, dword [ebp - 4]
je 0x419d7c
cmp dword [ebp + 0xc], 0
je 0x419d7c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x419d59
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00419864
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x419d83
xor eax, eax
inc eax
jmp 0x419d83
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x419de8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10a7840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004117a0
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004117a0
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x419e5f
cmp word [ecx], dx
je 0x419e5f
mov eax, dword [0x421d2c]
push edi
dec eax
push eax
push 0x421c18
call fcn.00419d87
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x419ed2
cmp word [eax], dx
je 0x419ed2
mov eax, dword [edi]
test eax, eax
je 0x419e83
cmp word [eax], dx
je 0x419e83
lea eax, [ebp - 0x10]
push eax
call fcn.0041976a
jmp 0x419e8c
lea eax, [ebp - 0x10]
push eax
call fcn.00419805
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x419efc
mov eax, dword [0x421c14]
push dword [ebp - 0x14]
dec eax
push eax
push 0x421908
call fcn.00419d87
add esp, 0xc
test al, al
je 0x419efc
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x419ec7
cmp word [eax], di
je 0x419ec7
lea eax, [ebp - 0x10]
push eax
call fcn.0041976a
pop ecx
jmp 0x419efe
lea eax, [ebp - 0x10]
push eax
call fcn.00419805
jmp 0x419ec4
mov eax, dword [edi]
test eax, eax
je 0x419ee9
cmp word [eax], dx
je 0x419ee9
lea eax, [ebp - 0x10]
push eax
call fcn.0041971f
pop ecx
jmp 0x419efc
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x419fc7
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00419c0c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x419fc7
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x419fc7
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x419fc7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x419f54
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00412080
test ebx, ebx
je 0x419fc2
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00412080
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x419fc7
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x419fc7
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041b43d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x419fc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407462
leave
ret
Function at 0x41cc60
Capabilities:
Parse pe header

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3a30261d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2de17ab3
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x401144
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x412008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call fcn.00401000
push 0x40c
xor ebx, ebx
mov dword [ebp - 0x414], 0x22
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.00401de0
add esp, 0xc
lea eax, [ebp - 0x412]
mov esi, 0x207
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401259
cmp eax, esi
jae 0x401259
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x412]
push eax
call esi
lea eax, [ebp - 0x412]
push eax
call esi
push str.GoogleUpdate.exe
lea eax, [ebp - 0x412]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x401259
push str.___ondemand
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.00401046
test eax, eax
js 0x40125e
push edi
push 0x40
lea eax, [ebp - 0x464]
mov dword [ebp - 0x468], 0x44
push ebx
push eax
call fcn.00401de0
xor eax, eax
lea edi, [ebp - 0x424]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x468]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x401259
push dword [ebp - 0x424]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x420]
call esi
xor eax, eax
jmp 0x40125e
call fcn.0040102b
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004014b9
leave
ret 0x10
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x40de38
mov ecx, 0x62055600
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x7e173ff6
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402ef0
Capabilities:
Hide graphical window
Terminate process

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
push ebp
mov dword [esp + 0x28], eax
push 0x30
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], 0x280
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], 0x1e0
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x20
call ebx
mov esi, eax
push 0x21
shl esi, 1
call ebx
mov edi, eax
push 4
shl edi, 1
call ebx
push 0xf
add edi, eax
call ebx
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add edi, eax
mov eax, dword [esp + 0x10]
sub ecx, esi
sub edx, ebx
sub ecx, eax
sub edx, edi
xor eax, eax
xor ebx, ebx
cmp ebx, ecx
jg 0x402f83
cmp ebp, edx
jg 0x402f83
inc eax
add ebx, 0x140
add ebp, 0xe0
jmp 0x402f6c
test eax, eax
jle 0x402f88
dec eax
mov edx, dword [esp + 0x18]
lea ebx, [eax + eax*4]
mov ecx, dword [esp + 0x1c]
shl ebx, 6
add ebx, esi
lea esi, [eax*8]
sub esi, eax
mov eax, dword [esp + 0x10]
add eax, edx
cdq
sub eax, edx
shl esi, 5
add esi, edi
mov edi, eax
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
sar edi, 1
sub edi, eax
lea eax, [ecx + edx]
cdq
sub eax, edx
mov ebp, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
sar ebp, 1
push str.direct_draw_init____n
sub ebp, eax
call fcn.00401000
mov eax, dword [0x50b588]
add esp, 4
test eax, eax
mov ecx, str.DGENFULL
jne 0x402ff3
mov ecx, str.DGENMAIN
mov edx, dword [0x50856c]
push 0
push edx
push 0
push 0
push esi
push ebx
neg eax
push ebp
sbb eax, eax
push edi
and eax, 0x7f310000
add eax, 0xcf0000
push eax
push str.DGen_v1.21
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x508564], eax
push 1
jne 0x403031
call fcn.004e0b30
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x508564]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
mov ecx, dword [0x50b598]
mov edx, dword [0x50b588]
mov eax, dword [0x508564]
push ecx
push edx
push eax
call fcn.00404b80
mov ecx, dword [0x508564]
add esp, 0xc
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [0x508564]
push edx
call esi
call fcn.00402840
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x405a00
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
xor ebp, ebp
xor eax, eax
mov ecx, 0x13
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ebp
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
xor esi, esi
push esi
call edi
shr eax, 0xf
and eax, 1
mov byte [esi + 0x50d1f0], al
jne 0x405a3a
mov byte [esi + 0x50d2f0], 1
inc esi
cmp esi, 0x100
jl 0x405a22
cmp dword [0x50d4f0], ebp
mov dword [esp + 0x18], ebp
jle 0x405bad
mov eax, 0x50d3f0
mov dword [esp + 0x10], 0x50d4f5
mov dword [esp + 0x14], 0x50ddf6
mov dword [esp + 0x1c], eax
cmp eax, 0x50d4f0
jge 0x405bad
mov esi, dword [eax]
test esi, esi
je 0x405b74
xor edi, edi
mov eax, dword [esi]
push esi
call dword [eax + 0x64]
mov ebx, eax
test ebx, ebx
je 0x405aa3
mov ecx, dword [esi]
push esi
call dword [ecx + 0x1c]
inc edi
cmp edi, 2
jl 0x405a83
test ebx, ebx
jne 0x405b70
xor ebx, ebx
mov edx, dword [esi]
lea eax, [esp + 0x20]
push eax
push 0x50
push esi
call dword [edx + 0x24]
mov edi, eax
test edi, edi
je 0x405acc
mov ecx, dword [esi]
push esi
call dword [ecx + 0x1c]
inc ebx
cmp ebx, 2
jl 0x405aa5
test edi, edi
jne 0x405b70
mov eax, dword [esp + 0x24]
cmp eax, 0xfffffe0c
jge 0x405ae0
mov byte [ebp + 0x50d4f4], 1
jmp 0x405aee
mov byte [ebp + 0x50d4f4], 0
mov byte [ebp + 0x50ddf4], 1
cmp eax, 0x1f4
jle 0x405b02
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov byte [edx], 1
jmp 0x405b11
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov byte [eax], 0
mov byte [ecx - 1], 1
mov eax, dword [esp + 0x20]
cmp eax, 0xfffffe0c
jge 0x405b25
mov byte [ebp + 0x50d4f6], 1
jmp 0x405b2f
mov byte [ebp + 0x50d4f6], 0
mov byte [ecx], 1
cmp eax, 0x1f4
jle 0x405b3f
mov byte [ebp + 0x50d4f7], 1
jmp 0x405b4a
mov byte [ebp + 0x50d4f7], 0
mov byte [ecx + 1], 1
xor eax, eax
test byte [esp + eax + 0x50], 0x80
je 0x405b5d
mov byte [eax + ebp + 0x50d4f8], 1
jmp 0x405b6a
mov byte [eax + ebp + 0x50d4f8], 0
mov byte [ecx + eax + 2], 1
inc eax
cmp eax, 0x20
jl 0x405b4c
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, 0x24
add ebx, edx
add esi, edx
add ebp, edx
mov edx, dword [0x50d4f0]
inc ecx
add eax, 4
cmp ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
jl 0x405a6c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
Function at 0x4dccd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4dccdb
xor eax, eax
ret
mov eax, dword [esp + 4]
push edi
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
push ebx
not eax
jb 0x4dcddd
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4ea458]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4ea458]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4ea458]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4ea458]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4ea458]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4ea458]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4ea458]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4ea458]
xor eax, edx
inc ecx
dec edi
jne 0x4dccf6
test esi, esi
je 0x4dcdff
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4ea458]
xor eax, edx
inc ecx
dec esi
jne 0x4dcde1
pop ebx
pop esi
not eax
pop edi
ret
Function at 0x4e4ded
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4ff0a0
cmp edx, dword [eax]
je 0x4e4e0f
add eax, 8
inc ecx
cmp eax, 0x4ff130
jl 0x4e4e00
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4ff0a0]
jne 0x4e4f3d
mov eax, dword [0x55fb6c]
cmp eax, 1
je 0x4e4f17
test eax, eax
jne 0x4e4e40
cmp dword [0x4fed94], 1
je 0x4e4f17
cmp edx, 0xfc
je 0x4e4f3d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4e4e77
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004e6570
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004e42d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4e4eba
lea eax, [ebp - 0x1a4]
push eax
call fcn.004e42d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4eaf04
push edi
call fcn.004e0d10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004e6570
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004e6580
lea eax, [ebp - 0xa0]
push 0x4eaee4
push eax
call fcn.004e6580
push dword [esi + 0x4ff0a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004e6580
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004e79bf
add esp, 0x2c
pop edi
jmp 0x4e4f3d
lea eax, [ebp + 8]
lea esi, [esi + 0x4ff0a4]
push 0
push eax
push dword [esi]
call fcn.004e42d0
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 0x401b07
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x124
lea edx, [ebp - 0x10c]
mov eax, 0
mov ecx, 0x20
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0x18
call fcn.00402279
test eax, eax
je 0x401be5
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.user32.dll_FindWindowExA]
call eax
sub esp, 0x10
mov dword [ebp - 0xc], eax
jmp 0x401bdf
mov dword [esp + 8], 0x7f
lea eax, [ebp - 0x8c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetWindowTextA]
call eax
sub esp, 0xc
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x8c]
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401bb4
mov eax, dword [ebp - 0xc]
jmp 0x401bea
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.user32.dll_FindWindowExA]
call eax
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401b71
mov eax, 0
mov edi, dword [ebp - 4]
leave
ret

Function at 0x402104
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x34
mov eax, dword [sym.imp.kernel32.dll_GetLastError]
call eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x40b080]
test eax, eax
je 0x40213b
mov eax, dword [0x40b080]
mov dword [esp + 8], 0x413980
mov dword [esp + 4], str.Error_msg:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
cmp dword [ebp - 0xc], 0
je 0x4021f9
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x400
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1300
mov eax, dword [sym.imp.kernel32.dll_FormatMessageA]
call eax
sub esp, 0x1c
mov eax, dword [0x40b080]
test eax, eax
je 0x4021a9
mov edx, dword [ebp - 0x10]
mov eax, dword [0x40b080]
mov dword [esp + 8], edx
mov dword [esp + 4], str.Error:_t_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 0x413980
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
sub eax, 1
sub eax, 0xffffff80
add eax, 0x413900
mov word [eax], 0xa0a
mov byte [eax + 2], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0x413980
call sub.msvcrt.dll_strcat
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_LocalFree]
call eax
sub esp, 4
mov dword [esp], 0x413980
call fcn.00402096
movzx eax, byte [0x413d80]
test al, al
je 0x40226f
mov eax, dword [0x40b080]
test eax, eax
je 0x402236
mov eax, dword [0x40b080]
mov dword [esp + 8], 0x413d80
mov dword [esp + 4], str.Open_URL:_t_s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x413d80
mov dword [esp + 4], str.open
mov dword [esp], 0
mov eax, dword [sym.imp.shell32.dll_ShellExecuteA]
call eax
sub esp, 0x18
call fcn.00401e9a
mov edi, dword [ebp - 4]
leave
ret